package com.muxue.module.ai.model.dto.audio.speech.api;

import org.springframework.ai.model.Model;
import org.springframework.ai.openai.audio.speech.SpeechPrompt;
import org.springframework.ai.openai.audio.speech.SpeechResponse;

import java.nio.ByteBuffer;

/**
 * @author muxue
 * @author <a href="mailto:yuluo08290126@gmail.com">yuluo</a>
 * @since 2023.0.0.0-RC1
 */

//@FunctionalInterface
//public interface SpeechModel extends Model<SpeechPrompt, SpeechResponse> {
//
//
//	default ByteBuffer call(String message) {
//
//		SpeechPrompt prompt = new SpeechPrompt(message);
//
//		return call(prompt).getResult().getOutput();
//	}
//
//
//	SpeechResponse call(SpeechPrompt request);
//
//}
